package com.wbl.tijianssm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wbl.tijianssm.pojo.Orders;
import com.wbl.tijianssm.pojo.Overallresult;
import com.wbl.tijianssm.response.ApiRestResponse;
import com.wbl.tijianssm.service.OverallresultService;
import com.wbl.tijianssm.mapper.OverallresultMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author yy
* @description 针对表【overallresult】的数据库操作Service实现
* @createDate 2024-09-18 10:09:07
*/
@Service
public class OverallresultServiceImpl extends ServiceImpl<OverallresultMapper, Overallresult>
    implements OverallresultService{

    @Autowired
    OverallresultMapper overallresultMapper;

    @Override
    public ApiRestResponse getResultlistbyUser(Orders order) {
        List<Overallresult> overallresults = overallresultMapper.getResultByUser(order);
        return ApiRestResponse.success(overallresults);
    }
}




